from typing import Optional, List
from pydantic import BaseModel, Field

class CreateGroupRequest(BaseModel):
    group_name:str = Field(..., description="群组名称")


class UpdatePhoneRequest(BaseModel):
    phone:str = Field(..., description="手机号")
    first_name:str = Field(..., description="姓")
    last_name:str = Field(..., description="名")

class UpdateGroupRequest(BaseModel):
    group_name:str = Field(..., description="群组名称")

class SendSmsPhoneRequest(BaseModel):
    recipient: List[str] = Field(..., description="接收者列表，例如 [\"15655841102\",....]")
    message: Optional[str] = Field("", description="发送内容,6位数字")

class SendSmsGroupRequest(BaseModel):
    contact_list_id:str = Field(..., description="群组id")
    sender_id:str = Field(..., description="发送签名")
    type:str =  Field("plain", description="发送类型")
    message: str = Field(..., description="发送内容")
    schedule_time: Optional[str] = None
    dlt_template_id: Optional[str] = None
class CatSmsRequest(BaseModel):
    uid:str = Field(..., description="短信id,在 GoTone 短信平台上创建的唯一随机 uid，在创建对象时返回。")